<!DOCTYPE html>
<html class="x-admin-sm">
    <head>
        <meta charset="UTF-8">
        <title>欢迎页面-X-admin2.2</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
        <link rel="stylesheet" href="./css/font.css">
        <link rel="stylesheet" href="./css/xadmin.css">
        <script src="./lib/layui/layui.js" charset="utf-8"></script>
        <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
        <script type="text/javascript" src="./js/xadmin.js"></script>
        <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
        <!--[if lt IE 9]>
          <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
          <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->
    </head>
    <body>
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body ">
                        <blockquote class="layui-elem-quote">欢迎用户：
                            <span class="x-red" id="adminName"></span>
                        </blockquote>
                    </div>
                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">数据统计</div>
                    <div class="layui-card-body ">
                        <ul class="layui-row layui-col-space10 layui-this x-admin-carousel x-admin-backlog">
                            <li class="layui-col-md3 layui-col-xs4">
                                <a class="x-admin-backlog-body">
                                    <h3>运营账号总数</h3>
                                    <p><cite id="adminNum"></cite></p>
                                </a>
                            </li>
                            <li class="layui-col-md3 layui-col-xs6">
                                <a class="x-admin-backlog-body">
                                    <h3>用户总数</h3>
                                    <p><cite id="userNum"></cite></p>
                                </a>
                            </li>
                            <li class="layui-col-md3 layui-col-xs6">
                                <a class="x-admin-backlog-body">
                                    <h3>合同总数</h3>
                                    <p><cite id="htNum"></cite></p>
                                </a>
                            </li>
                            <li class="layui-col-md3 layui-col-xs6">
                                <a class="x-admin-backlog-body" >
                                    <h3>模板总数</h3>
                                    <p><cite id="htModeNum"></cite></p>
                                </a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header">开发团队</div>
                    <div class="layui-card-body ">
                        <table class="layui-table">
                            <tbody>
                            <tr>
                                <th>版权所有</th>
                                <td>曾繁星</td>
                            </tr>
                            <tr>
                                <th>开发者</th>
                                <td>曾繁星</td></tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <style id="welcome_style"></style>
            <div class="layui-col-md12">
                <blockquote class="layui-elem-quote layui-quote-nm">感谢layui,jquery,本系统由x-admin提供技术支持。</blockquote></div>
        </div>
    </div>
    </body>
    <script>
        $('#adminName').html(sessionStorage.getItem("userName"));
        $.ajax({
            url: '/admin/countInfo',
            success: function (res) {
            console.log(res);
            $('#adminNum').html(res.adminNum);
            $('#userNum').html(res.userNum);
            $('#htNum').html(res.htNum);
            $('#htModeNum').html(res.htModeNum);
            }
        })
    </script>
</html>